package com.gagakuai.demo.configde;

/*
 * @program: settement
 * @description:
 * @author: houhong
 * @create: 2022-11-12 11:43
 */

import org.springframework.beans.factory.annotation.Autowired;

public class Service3 {

    public Service3() {
        System.out.println("service3构建");
    }

    /*
     * 这里是使用AutowiredAnonationBeanPostProcessor 处理的
     * 所以在BeandefitionPostFactoryProcessoer 处理会报错
     */
    private Service4 service4;

    public void sayHelloHandler() {

        System.out.println("Service3");
        service4.sayHelloHandler();
    }

    public Service4 getService4() {
        return service4;
    }

    public void setService4(Service4 service4) {
        this.service4 = service4;
    }
}